<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="keywords" value="{$keywords}" />
    <input type="hidden" name="artcat_id" value="{$valartcat_id}" />
</form>


<div class="pageHeader">
	<form rel="pagerForm"onsubmit="return navTabSearch(this);" action="{:U('Single/index')}" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					关键字：<input type="text" value="{$keywords}" name="keywords" />
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
		  </ul>
	  </div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<php>if( ishavepower('Single/add') ){</php><li><a class="add" href="{:U('Single/add')}" target="navTab" rel="single_add"><span>添加</span></a></li><php>}</php> 
            <php>if( ishavepower('Single/edit') ){</php><li><a class="edit" href="{:U('Single/edit')}?art_id={art_id}" target="navTab" rel="single_add" title="编辑单页" warn="请指定要修改的单页"><span>修改</span></a></li><php>}</php> 
		</ul>
	</div>
	<table class="table" layoutH="138" width="100%">
		<thead>
			<tr>
				<th>序号</th>
				<th>文章标题</th>
				<th>发布时间</th>
				<th align="center">操作</th>
			</tr>
		</thead>
		<tbody>
        <volist name="list" id="vo">
			<tr target="art_id" rel="{$vo.id}">
				<td>{$vo.id}</td>
				<td>{$vo.title}</td>
				<td>{$vo.createtime|date="Y-m-d H:i:s",###}</td>
				<td align="center">
                    <php>if( ishavepower('Single/edit') ){</php><a title="编辑" target="navTab" href="{:U('Single/edit',array('art_id'=>$vo['id']))}" class="btnEdit">编辑</a><php>}</php> 
                    <php>if( ishavepower('Single/del') ){</php><a title="你确定删除该单页吗？" target="ajaxTodo" href="{:U('Single/del',array('art_id'=>$vo['id']))}" class="btnDel">删除</a><php>}</php> 
                </td>
			</tr>
           </volist>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages"> <span>显示</span>
      <select class="combox" name="numPerPage" onChange="navTabPageBreak({numPerPage:this.value})">
       <option value="5"<eq name="numPerPage" value="5"> selected="selected"</eq>>5</option>
      	<option value="10"<eq name="numPerPage" value="10"> selected="selected"</eq>>10</option>
        <option value="20"<eq name="numPerPage" value="20"> selected="selected"</eq>>20</option>
        <option value="50"<eq name="numPerPage" value="50"> selected="selected"</eq>>50</option>
        <option value="100"<eq name="numPerPage" value="100"> selected="selected"</eq>>100</option>
        <option value="200"<eq name="numPerPage" value="200"> selected="selected"</eq>>200</option>
      </select>
      <span>条，共{$totalCount}条</span> </div>
    <div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>
</div>
